#include "../../../../mac/mac.h"

int8 init_test()
{
    buf_init();
    return mac_queue_init();
}


int8 push_test(length)
{
    buf_t *buf = buf_alloc(false);
    buf->length = length;

    return mac_queue_push(buf);
}


int8 pop_test(length)
{
    buf_t *t = mac_queue_pop();
    if (t != NULL && t->length == length) {
        return MAC_OK;        
    } else {
        return MAC_ERR;
    }
}

